<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${mapperPackage}.${tableClass.shortClassName}${mapperSuffix}">
    <#assign dateTime = .now>
    <!--
        Author: ${author}
        Date: ${dateTime?string["yyyy-MM-dd HH:mm:ss"]}
        Description: ${description} mapper.xml
    -->
    <resultMap id="BaseResultMap" type="${tableClass.fullClassName}" >
       <#if tableClass.allFields??>
           <#list tableClass.allFields as field>
             <id column="${field.columnName}" property="${field.fieldName}" jdbcType="${field.jdbcType}" />
           </#list>
       </#if>
    </resultMap>
    <sql id="Base_Column_List">
       <#if tableClass.allFields??>
            <#list tableClass.allFields as field> ${field.columnName}<#if field_has_next>,</#if></#list>
       </#if>
    </sql>
    <sql id="Base_Alias_Column_List">
       <#if tableClass.allFields??>
            <#list tableClass.allFields as field>m.${field.columnName}<#if field_has_next>,</#if></#list>
       </#if>
    </sql>
</mapper>